<?php use_helper('Object') ?>

<div class="sf_admin_filters">
<?php echo form_tag('@admin?module=post&action=list', array('method' => 'get')) ?>

  <fieldset>
    <h2><?php echo __('filters') ?></h2>
    <div class="form-row">
    <label for="handle"><?php echo __('Handle:') ?></label>
    <div class="content">
    <?php echo input_tag('filters[handle]', isset($filters['handle']) ? $filters['handle'] : null, array (
  'size' => 15,
)) ?>
    </div>
    </div>

        <div class="form-row">
    <label for="datetime"><?php echo __('Datetime:') ?></label>
    <div class="content">
    <?php echo input_date_range_tag('filters[datetime]', isset($filters['datetime']) ? $filters['datetime'] : null, array (
  'rich' => true,
  'calendar_button_img' => '/sf/sf_admin/images/date.png',
)) ?>
    </div>
    </div>

        <div class="form-row">
    <label for="published"><?php echo __('Published:') ?></label>
    <div class="content">
    <?php if (isset($filters['published'])): ?>
      <?php echo checkbox_tag('filters[published]', '1', $filters['published'] ? true : false); ?>
    <?php else: ?>
       <?php echo checkbox_tag('filters[published]', '1', false); ?>
    <?php endif; ?>
    </div>
    </div>

      </fieldset>

  <ul class="sf_admin_actions">
    <li><?php echo button_to(__('reset'), '@admin?module=post&action=list&filter=filter', 'class=sf_admin_action_reset_filter') ?></li>
    <li><?php echo submit_tag(__('filter'), 'name=filter class=sf_admin_action_filter') ?></li>
  </ul>

</form>
</div>

